package com.fr.base.core;

import com.fr.base.FCloneable;
import java.io.Serializable;

public class FT
  implements Serializable, FCloneable
{
  private static final long serialVersionUID = -8258921216298675422L;
  public int from;
  public int to;

  public FT(int paramInt1, int paramInt2)
  {
    this.from = paramInt1;
    this.to = paramInt2;
  }

  public int getFrom()
  {
    return this.from;
  }

  public void setFrom(int paramInt)
  {
    this.from = paramInt;
  }

  public int getTo()
  {
    return this.to;
  }

  public void setTo(int paramInt)
  {
    this.to = paramInt;
  }

  public String toString()
  {
    return this.from + " -> " + this.to;
  }

  public int count()
  {
    return Math.abs(this.from - this.to);
  }

  public boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof FT))
      return false;
    FT localFT = (FT)paramObject;
    return ((this.from == localFT.from) && (this.to == localFT.to));
  }

  public Object clone()
    throws CloneNotSupportedException
  {
    return super.clone();
  }
}